package org.example.service.impl;

import org.example.entity.Permission;
import org.example.mapper.PermissionMapper;
import org.example.service.IPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author guocb
 * @since 2021-03-01
 */
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements IPermissionService {

    @Override
    public List<Permission> selectPermission(Long roleId) {
        return baseMapper.selectPermission(roleId);
    }

    @Override
    public List<Permission> selectRolePermission(Long roleId) {
        return baseMapper.selectRolePermission(roleId);
    }
}
